home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_x / xcoral16.zip / OPTIONS.H < prev    next >
C/C++ Source or Header  |  1993-01-15  |  2KB  |  78 lines

  1. /*
  2. ** Copyright 1989, 1992 by Lionel Fournigault
  3. **
  4. ** Permission to use, copy, and distribute for non-commercial purposes,
  5. ** is hereby granted without fee, providing that the above copyright
  6. ** notice appear in all copies and that both the copyright notice and this
  7. ** permission notice appear in supporting documentation.
  8. ** The software may be modified for your own purposes, but modified versions
  9. ** may not be distributed.
  10. ** This software is provided "as is" without any expressed or implied warranty.
  11. **
  12. **
  13. */
  14.  
  15. #ifndef _OPTIONS_H_
  16. #define _OPTIONS_H_
  17.  
  18. #include <X11/Xlib.h>
  19.  
  20. /*
  21.  *    Les options utilisables par le programme.
  22.  *    La geometrie, les fontes, les couleurs etc.
  23.  */
  24. typedef struct {
  25.     int         x, y, width, height;
  26.     unsigned long     fg, bg;
  27.     unsigned long    text_top_shadow, text_bottom_shadow;
  28.     XFontStruct     *text_font;
  29.     unsigned long     mfg, mbg;
  30.     unsigned long    menu_top_shadow, menu_bottom_shadow;
  31.     XFontStruct    *menu_font;
  32.     unsigned long     dfg, dbg;
  33.     unsigned long    dialog_top_shadow, dialog_bottom_shadow;
  34.     unsigned long     bd;
  35.     unsigned int     bw;
  36.     char filename [512];
  37. } Options;
  38.  
  39. /*
  40.  *    Public
  41.  */
  42. extern void        ParseOpenDisp ( /* argc, argv */ );
  43. extern void        GetUserDatabase ();
  44. extern void        MergeOptions ();
  45. extern XFontStruct    *GetOpFont ( /* type */ );
  46. extern unsigned long     GetOpColor ( /* type */ );
  47. extern char         *GetOpFilename ();
  48. extern unsigned int     GetOpBW ();
  49. extern unsigned long    GetOpBD ();
  50. extern int         GetOpGeo ( /* type */ );
  51. extern unsigned long     PixelValue ( /* display, str, result */ );
  52.  
  53. #define OP_TEXT_FG    1
  54. #define OP_TEXT_BG    2
  55. #define OP_TEXT_TS    3
  56. #define OP_TEXT_BS    4
  57. #define OP_TEXT_FONT    5
  58.  
  59. #define OP_MENU_FG    6
  60. #define OP_MENU_BG    7
  61. #define OP_MENU_TS    8
  62. #define OP_MENU_BS    9
  63. #define OP_MENU_FONT    10
  64.  
  65. #define OP_DIAL_FG    11
  66. #define OP_DIAL_BG    12
  67. #define OP_DIAL_TS    13
  68. #define OP_DIAL_BS    14
  69. #define OP_DIAL_FONT    15
  70.  
  71. #define OP_X        16
  72. #define OP_Y        17
  73. #define OP_WIDTH    18
  74. #define OP_HEIGHT    19
  75.  
  76. #endif  /* _OPTIONS_H_ */
  77.  
  78.